package com.gs.mybatisflextest.model;


import com.alibaba.fastjson2.annotation.JSONField;
import com.mybatisflex.annotation.*;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.mybatisflex.core.mask.Masks;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@Table("TB_USER")
public class TbUser implements Serializable {

    @Id(keyType = KeyType.Generator,value= KeyGenerators.uuid)
    private String id;


    @ColumnMask(Masks.CHINESE_NAME)
    private String userName;

    private String deptId;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
